Skip to main content

themeClass

Type

property

Summary

Specifies which set of theming parameters should be used for an object.

Syntax

set the themeClass of tObject to tThemeClass

Description

Use the themeClass property of an object or control to change which set of theming parameters it uses. These parameters include fonts, colors and sizes. For example, setting the themeClass of a field to "label" will cause it to use the fonts and colors of a label rather than a text entry box.

If no themeClass is specified, the engine will auto-detect the appropriate type based on the properties of the object. To retrieve this auto-detected type when the property is empty use the effective themeClass.

Unlike many other appearance-related properties, the themeClass property is not inherited.

Examples

set the themeClass of field "mylabel" to "label"

property: theme

Compatibility and Support

Introduced

LiveCode 8.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?